package com.qsbc.pygram.service.impl;

import com.qsbc.pygram.entity.PaperManage;
import com.qsbc.pygram.mapper.PaperManageMapper;
import com.qsbc.pygram.service.PaperManageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2023-01-02
 */
@Service
public class PaperManageServiceImpl extends ServiceImpl<PaperManageMapper, PaperManage> implements PaperManageService {

    @Autowired
    private PaperManageMapper paperManageMapper;
    @Override
    public List<PaperManage> findAll() {
        return paperManageMapper.findAll();
    }

    @Override
    public List<PaperManage> findById(Integer paperId) {
        return paperManageMapper.findById(paperId);
    }

    @Override
    public int add(PaperManage paperManage) {
        return paperManageMapper.add(paperManage);
    }


}
